package com.lyncs.ods.resp;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author alex
 * @date 2022/2/8 22:32
 * @description
 */
@Data
@Accessors(chain = true)
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class ListPageResp {

    @ApiModelProperty(value = "订单/交付单 ID")
    private Long id;

    @ApiModelProperty(value = "是否置顶单据")
    private Boolean top;

    @ApiModelProperty(value = "创建者用户id")
    private String creatorName;

    @ApiModelProperty(value = "货币")
    private String currency;

    /*@ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;*/

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "卖方公司信息")
    private CompanyShortInfoResp sellerCompanyInfo;

    @ApiModelProperty(value = "买方公司信息")
    private CompanyShortInfoResp buyerCompanyInfo;

    @ApiModelProperty(value = "商品类目数")
    private Integer categoryCount;

    @ApiModelProperty(value = "sku 图片")
    private List<String> skuImages;

    @ApiModelProperty(value = "总金额")
    private String totalAmount;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "创建者用户所属公司ID")
    private Long creatorCompanyId;
}
